package com.example.work1.server.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.example.work1.server.mapper.UserMapper;
import com.example.work1.server.service.UserService;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public int validateUser(String username, String password) {
        return userMapper.validateUser(username,password);
    }
}
